package org.jsbd.boss.dao.impl;

import org.jsbd.boss.dao.ICameraDao;
import org.jsbd.boss.domian.channel.CameraInfo;
import org.springframework.stereotype.Service;

/**
 * @desc
 * @Date 2018/8/20 17:37
 * @Author xupengcheng [xupengcheng@zhexinit.com]
 */
@Service
public class CameraDao extends CrackBaseDao implements ICameraDao {
    @Override
    public CameraInfo selectCamera(String hsman, String hstype) {
        CameraInfo info = new CameraInfo();
        info.setHstype(hstype);
        info.setHsman(hsman);
        return (CameraInfo) super.queryForObject("qy_camera_info.SELECT_CAMERA_INFO", info);
    }

    @Override
    public CameraInfo selectRandomCamera(String hsman, String hstype) {
        CameraInfo info = new CameraInfo();
        info.setHstype(hstype);
        info.setHsman(hsman);
        return (CameraInfo) super.queryForObject("qy_camera_info.SELECT_RANDOM_CAMERA_INFO", info);
    }
}
